package object;

public class ObjectDemo {
    public static void main(String[] args) {
        String s1=new String("asdf");
        String s2=new String("asdf");
        System.out.println(s1.equals(s2));

        StringBuilder builder1=new StringBuilder("asdf");
        StringBuilder builder2=new StringBuilder("asdf");
        System.out.println(builder1.equals(builder2));
        System.out.println(s1.equals(builder1));
        /*Point p=new Point(100,200);
        Point p1=new Point(100,200);
        System.out.println(p==p1);
        System.out.println(p.equals(p1));



        /*Point p=new Point(100,200);
        System.out.println(p);
        System.out.println(p.toString());

         */
    }
}
